import {pget, postFileByFormData} from '@/utils/req'
import {modalApi} from '@/utils/modalReq'

// 渠道补扣费列表
export function getDitchreplenishList(query: any) {
	return pget(`${modalApi.sales}/ditchreplenish/page`, query)
}

/** 获取导入失败列表 */
export function getErrorRulesPage(query: any) {
  return pget(
    `${modalApi.sales}/ditchreplenish/errorRulesPage`, query
  );
}

/** 保存补扣费导入数据 */
export function ditchreplenishImport(query?: any) {
	return postFileByFormData(
		`${modalApi.sales}/ditchreplenish/ditchreplenishImport`,
		query,
	)
}
